// @ts-ignore
import { request } from '@/request/request';
import { Doctor } from "@/api/doctor/type";


/**
 * 获取推荐医生.
 * @param data
 */
export const getRecommend = (data:any): Promise<any> => {
    return request({ url: '/doctor/getRecommend', data, method: 'GET' })
}

/**
 * 获取排班医生.
 * @param data
 */
export const getScheduledDoctors = (data:Doctor.GetScheduledDoctorsParam): Promise<Doctor.Response> => {
    return request({ url: '/doctor/getScheduledDoctors', data, method: 'GET' })
}

/**
 * 医生详情.
 * @param data
 */
export const getDoctorDetailByID = (data: any): Promise<Doctor.Response> => {
    return request({ url: '/doctor/detail', data, method: 'GET' })
}

/**
 * 医生主页排班.
 * 指定日期.
 * @param data
 */
export const getScheduleOnDate = (data: any): Promise<Doctor.Response> => {
    return request({ url: '/doctor/getScheduleOnDate', data, method: 'GET' })
}
